package com.hhb.service.impl;

import com.hhb.dao.CountDao;
import com.hhb.service.CountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class CountServiceImpl implements CountService {

    @Autowired
    private CountDao countDao;


    @Override
    public void countMoney() {


            countDao.reduceMoney();
            //int i = 10 / 0;

            countDao.addMoney();

    }
}
